package com.ecmcloud.flow.node;

import cn.hutool.extra.spring.SpringUtil;

import com.ecmcloud.flow.config.FlowProperties;

public class NodeDataStoreFactory {

    public static INodeDataStoreHandler getInstance() {
    	FlowProperties flowProperties = SpringUtil.getBean(FlowProperties.class);
        String mapNodeDataStore = flowProperties.getNodeDataStore();
        INodeDataStoreHandler bean = SpringUtil.getBean(mapNodeDataStore,INodeDataStoreHandler.class);
        return bean;
    }

}
